package com.dingreading.cloud.soms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "store_books")
public class StoreBooks implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 门店id
     */
    @ApiModelProperty(value = "门店id")
    private Long storeId;

    /**
     * 总部书刊id
     */
    @ApiModelProperty(value = "书刊id")
    private Long journalId;

    /**
     * 刊号
     */
    @ApiModelProperty(value = "刊号")
    private String journalNum;

    /**
     * 书刊名
     */
    @ApiModelProperty(value = "书刊名")
    private String journalName;

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    private Long bookLabelId;

    /**
     * 分类
     */
    @ApiModelProperty(value = "分类")
    private String bookLabelName;

    /**
     * 书种id
     */
    @ApiModelProperty(value = "书种id")
    private Long bookTypeId;

    /**
     * 书种
     */
    @ApiModelProperty(value = "书种")
    private String bookType;

    /**
     * 总部书籍id
     */
    @ApiModelProperty(value = "总部书籍id")
    private Long booksId;

    /**
     * 书号
     */
    @ApiModelProperty(value = "书号")
    private String bookNum;

    /**
     * isbn
     */
    @ApiModelProperty(value = "isbn")
    private String isbn;

    /**
     * 书名
     */
    @ApiModelProperty(value = "书名")
    private String bookName;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面")
    private String img;

    /**
     * 作者
     */
    @ApiModelProperty(value = "作者")
    private String author;

    /**
     * 出版社
     */
    @ApiModelProperty(value = "出版社")
    private String press;

    /**
     * 出版日期
     */
    @ApiModelProperty(value = "出版日期")
    private String pubDate;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String synopsis;

    /**
     * 介绍
     */
    @ApiModelProperty(value = "介绍")
    private String introduction;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    private Double unitPrice;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    private Integer stockCount;

    /**
     * 可借数量
     */
    @ApiModelProperty(value = "可借数量")
    private Integer borrowCount;

    /**
     * 来源
     * null/1.总部书籍 2.阿里云查询
     */
    @ApiModelProperty(value = "来源 null/1.总部书籍 2.阿里云查询 3.门店")
    private Integer source;

    /**
     * 状态
     * -1.下架 1.上架
     */
    @ApiModelProperty(value = "状态：-1.下架 1.上架")
    private Integer status;

}
